<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>手机端自适应</title>
    <link rel="stylesheet" href="./css/index.css">
    <style>

    </style>
  </head>
  <body>
    <div class="box">
      <div class="container">
        <img src="../images/title.png">
        <div class="p1">
        <p>轻食最早源自欧洲，因为其倡导健康理念
          崇尚简单、均衡、适量、自然、无负担
          越来越多的国人所接受并发扬光大
          演绎出多姿多彩的轻食主义</p>
        </div>
      </div>
      <div class="navl">
        <div class="nav1"><img src="../images/icon-1.png" alt=""></div>
        <div class="nav2"><img src="../images/icon-2.png" alt=""></div>
        <div class="nav3"><img src="../images/icon-3.png" alt=""></div>
        <div class="nav4"><img src="../images/icon-4.png" alt=""></div>
      </div>

    </div>
    <script>
      (function ($w, $d) {
        const w = $d.documentElement.clientWidth;
        $d.documentElement.style.fontSize = `${w / 750}px`;
      })(window, document);
    </script>
  </body>
</html>
